package com.xuetang9.fujian.mychat.util;

import com.xuetang9.fujian.mychat.entity.BizType;
import com.xuetang9.fujian.mychat.entity.Message;
import com.xuetang9.fujian.mychat.entity.User;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author: fujian
 * @description: 数据传输对象，封装了在网络中进行传输的对象，
 * @date: 2021/5/10 15:31
 * @version: V1.0
 * @package: com.xuetang9.fujian.mychat.util
 **/
public class SysDTO implements Serializable {
    private BizType bizType;
    private String nickName;
    private String password;
    private User user;
    private List<User> userList;
    private Message message;

    public SysDTO(BizType bizType) {
        this.bizType = bizType;
        this.userList = new ArrayList<>();
    }

    public BizType getBizType() {
        return bizType;
    }

    public void setBizType(BizType bizType) {
        this.bizType = bizType;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }
}


